/* 发现好书 */
$font_family: PingFang SC, -apple-system, SF UI Text, Lucida Grande, STheiti, Microsoft YaHei, sans-serif;

* {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: $font_family;

    body {

        #app {
            width: 375px;

            .top {
                box-sizing: border-box;
                position: fixed;
                z-index: 100;
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                height: 43px;
                background-color: #fff;
                border-bottom: 1px solid rgb(235,238,245);

                .back {
                    margin-left: 8px;
                    background-image: url(../img/icon_back.png);
                    background-size: 24px 24px;
                    width: 24px;
                    height: 24px;
                }

                .title {
                    color: #333;
                    font-size: 17px;
                }

                .other {
                    
                    height: 20px;
                    padding: 10px;
                    span{
                        display: block;
                        width: 20px;
                        border: 1px solid rgb(66,69,66);
                        margin-bottom: 5px;
                    }
                }
            }

            .body {
                position: relative;
                display: flex;
                justify-content: end;

                .left {
                    margin-top: 44px;
                    height: 100%;
                    position: fixed;
                    left: 0;
                    overflow-y: scroll;

                    ul {
                        border-left: 1px solid rgb(228, 232, 235);
                        border-right: 1px solid rgb(228, 232, 235);

                        li {
                            border-bottom: 1px solid rgb(228, 232, 235);
                            padding-left: 16px;
                        }

                        span {
                            display: block;
                            width: 80px;
                            font-size: 13px;
                            color: #303133;
                            line-height: 48px;
                            box-sizing: border-box;
                        }
                    }
                }

                .right {
                    width: 265px;
                    margin-top: 44px;
                    // 轮播图
                    .swiper {
                        position: relative;
                        width: 265px;
                        overflow: hidden;
                        ul {
                            width: 1325px;
                            display: flex;
                            animation: run 5s linear infinite;

                            li {
                                width: 265px;
                                height: 90px;

                                a {
                                    box-sizing: inherit;
                                    .img {
                                        width: 100%;
                                        height: 100%;
                                        background-image: url(../img/swiper_1.png);
                                        background-size: cover;
                                        background-position: center center;
                                    }
                                }
                            }

                            &:hover {
                                animation-play-state: paused;
                            }
                        }

                        @keyframes run {
                            0% {
                                transform: translateX(0);
                            }

                            10% {
                                transform: translateX(-265px);
                            }

                            25% {
                                transform: translateX(-265px);
                            }

                            35% {
                                transform: translateX(-530px);
                            }

                            50% {
                                transform: translateX(-530px);
                            }

                            60% {
                                transform: translateX(-795px);
                            }

                            75% {
                                transform: translateX(-795px);
                            }

                            85% {
                                transform: translateX(-1060px);
                            }

                            100% {
                                transform: translateX(-1060px);
                            }
                        }

                        span {
                            display: block;
                            width: 16.5px;
                            height: 4px;
                            border-radius: 2px;
                            opacity: 0.8;
                            background-color: #fff;
                            position: absolute;
                            bottom: 5%;
                            left: 47%;
                        }
                    }
                    // 
                    .list{
                        li{
                            display: flex;
                            margin-top: 15px;
                            padding-bottom: 15px;
                            border-bottom: 1px solid rgb(228,232,235);
                            .book_img{
                                height: 100px;
                                
                                img{
                                    width: 70px;
                                    height: 100px;
                                    border-radius: 4px;
                                }
                            }
                            .book_info{
                                display: flex;
                                flex-direction: column;
                                justify-content: space-between;
                                margin: 0 10px;
                                .book_top{
                                    .book_name{
                                        color: #09172f;
                                        font-size: 15px;
                                        height: 21px;
                                        word-wrap: normal;
                                        overflow: hidden;
                                    }
                                    .author_name{
                                        color: #6a7484;
                                        font-size: 12px;
                                    }
                                }
                                .book_synopsis{
                                    color: #6a7484;
                                    font-size: 12px;
                                    height: 35px;
                                    word-wrap: break-word;
                                    overflow: hidden;
                                }
                            }
                        }
                    }
                    .page{
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        height: 40px;
                        font-size: 14px;
                        color: #6a7484;
                        margin: 15px 10px 20px 0;
                        .prev{
                            border: 1px solid rgb(228,232,235);
                            display: flex;
                            justify-content: space-evenly;
                            align-items: center;
                            height: 100%;
                            width: 80px;
                            // background-color: rgb(238,238,238);
                            span{
                                display: block;
                                background-image: url(../img/icon_prev.png);
                                width: 13px;
                                height: 13px;
                            }
                        }
                        .page_num{

                        }
                        .next{
                            border: 1px solid rgb(228,232,235);
                            display: flex;
                            justify-content: space-evenly;
                            align-items: center;
                            height: 100%;
                            width: 80px;
                            span{
                                display: block;
                                background-image: url(../img/icon_xia.png);
                                width: 13px;
                                height: 13px;
                            }
                        }
                    }
                }
            }
        }
    }
}